package com.demo.factory;

import com.demo.dao.PersonDao;
import com.demo.dao.impl.PersonDaoImp;

/**
 * @ClassName PersonFactory
 * @Description TODO
 * @Author Windy
 * @Date 2022/8/26 15:20
 * @Version 1.0
 **/
public class PersonFactory {

    public PersonDao getPersonDao(){
        System.out.println("personFactory.......");
        return new PersonDaoImp();
    }

    public static PersonDao staticGetPersonDao(){
        System.out.println("static personFactory.......");
        return new PersonDaoImp();
    }
}
